package com.bookRecommend.service;

import com.bookRecommend.model.Type;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ITypeService {

    List<Type> findAllTypes();

    Type findById(Integer id);

    int removeById(Integer id);

    int modifyById(String typeName, Integer id);

    int addType(String TypeName);

    PageInfo<Type> findPage(Integer n, Integer size);

}
